package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.Images;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author EucliwoodHellsycthe
* @description 针对表【images(图片表)】的数据库操作Mapper
* @createDate 2023-05-12 20:33:42
* @Entity com.ruoyi.system.domain.Images
*/
@Mapper
public interface ImagesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Images record);

    int insertSelective(Images record);

    Images selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Images record);

    int updateByPrimaryKey(Images record);

    /**
     * 根据 foreignid 获取单个图片
     */
    List<String> selectImages(@Param("foreignId") String foreignId);

    int deleteByForeginId(@Param("foreignId") String foreignId);
}
